import Request from '@/utils/requset.js'
import {
	queryParams
} from '@/uni_modules/uv-ui-tools/libs/function/index.js'

let request = new Request().http
let uploadFile = new Request().upLoadFile
//全局定义请求头
export default {



	login: (data) => {
		return request({
			url: `/user/login`,
			method: "post",
			data,
			nologin: true
		})
	},
	// 获取openid 
	getCertQrBodyInfo: (data) => {
		return request({
			url: `/certificateMake/getCertQrBodyInfo`,
			method: "get",
			data,
			nologin: true
		})
	},
	verifyTruth: (data) => {
		return request({
			url: `/certificateMake/verifyTruth`,
			method: "get",
			data,
			nologin: true
		})
	},
	getCate: (data) => {
		return request({
			url: `/index/getCate`,
			method: "post",
			data,
			nologin: true
		})
	},
	getLeiXing: (data) => {
		return request({
			url: `/index/getLeiXing`,
			method: "get",
			data,
			nologin: true
		})
	},

	getInfo: (data) => {
		return request({
			url: `/index/getInfo`,
			method: "post",
			data,
			nologin: true
		})
	},
	getContent: (data) => {
		return request({
			url: `/index/getContent`,
			method: "get",
			data,
			nologin: true
		})
	},
	getHangYe: (data) => {
		return request({
			url: `/index/getHangYe`,
			method: "post",
			data,
			nologin: true
		})
	},
	getHangYe: (data) => {
		return request({
			url: `/index/getHangYe`,
			method: "post",
			data,
			nologin: true
		})
	},
	myUserInfo: (data) => {
		return request({
			url: `/index/myUserInfo`,
			method: "post",
			data,

		})
	},
	getDetailInfo: (data) => {
		return request({
			url: `/index/getDetailInfo`,
			method: "get",
			data,

		})
	},
	getMulu: (data) => {
		return request({
			url: `/index/getMulu`,
			method: "get",
			data,

		})
	},
	getvideo: (data) => {
		return request({
			url: `/index/getvideo`,
			method: "get",
			data,

		})
	},
	submitInfo: (data) => {
		return request({
			url: `/index/submitInfo`,
			method: "get",
			data,

		})
	},
	userIndex: (data) => {
		return request({
			url: `/user/index`,
			method: "get",
			data,

		})
	},
	getEducation: (data) => {
		return request({
			url: `/index/getEducation`,
			method: "get",
			data,
			nologin: true
		})
	},
	resetpwd: (data) => {
		return request({
			url: `/user/resetpwd`,
			method: "post",
			data,
			nologin: true
		})
	},
	readConfig: (data) => {
		return request({
			url: `/index/readConfig`,
			method: "post",
			data,
			nologin: true
		})
	},
	profile: (data) => {
		return request({
			url: `/user/profile`,
			method: "post",
			data,
			nologin: true
		})
	},
	orderList: (data) => {
		return request({
			url: `/index/orderList`,
			method: "get",
			data,
			nologin: true
		})
	},
	getUserInfoDetail: (data) => {
		return request({
			url: `/index/getUserInfoDetail`,
			method: "get",
			data,
			nologin: true
		})
	},
	updateFinish: (data) => {
		return request({
			url: `/index/updateFinish`,
			method: "get",
			data,
			nologin: true
		})
	},
	

	// getCertQrBodyInfo:(data)=>{/api/user/profile
	// 	return request({url:`/certificateMake/getCertQrBodyInfo`,method:"get",data})
	// },




	//oss文件上传
	uploadImg: (data) => {
		return uploadFile(data)
	},







	//我的
}
/*
请求样式：
    自定义名字: function(data) {
        return request({
            url: "/banner", //请求头
            method:"GET", //请求方式 
            data: data,    //请求数据
            token: token, // 可传  
            hideLoading: false, //加载样式
        })
    },
*/